import 'package:flutterproject/generated/json/base/json_field.dart';
import 'package:flutterproject/generated/json/upgrade_bean.g.dart';
import 'dart:convert';

@JsonSerializable()
class UpgradeBean {

	String? apkMd5;
	String? apkUrl;
	String? downloadUrl;
	String? forceVersionCode;
	String? tips;
	String? versionCode;
	String? versionTitle;
  
  UpgradeBean();

  factory UpgradeBean.fromJson(Map<String, dynamic> json) => $UpgradeBeanFromJson(json);

  Map<String, dynamic> toJson() => $UpgradeBeanToJson(this);

  UpgradeBean copyWith({String? apkMd5, String? apkUrl, String? downloadUrl, String? forceVersionCode, String? tips, String? versionCode, String? versionTitle}) {
      return UpgradeBean()..apkMd5= apkMd5 ?? this.apkMd5
			..apkUrl= apkUrl ?? this.apkUrl
			..downloadUrl= downloadUrl ?? this.downloadUrl
			..forceVersionCode= forceVersionCode ?? this.forceVersionCode
			..tips= tips ?? this.tips
			..versionCode= versionCode ?? this.versionCode
			..versionTitle= versionTitle ?? this.versionTitle;
  }
    
  @override
  String toString() {
    return jsonEncode(this);
  }
}